package com.xiaoyu.izf.controller;

import com.xiaoyu.izf.annotation.RequestAuth;
import com.xiaoyu.izf.enums.JsonReturnedEnum;
import com.xiaoyu.izf.exception.JsonReturnedException;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/test")
public class TestController {

    @RequestMapping("/t1")
    @RequestAuth
    public String t1(){
        throw new JsonReturnedException(JsonReturnedEnum.SUCCESS,"成功");
    }
}
